//
//  ItemMoreView.m
//  carowner
//
//  Created by apple on 2019/5/16.
//  Copyright © 2019 ggj. All rights reserved.
//

#import "ItemMoreView.h"

@implementation ItemMoreView

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if(self){
        
        _tvTip = [[UILabel alloc] init];
        _tvTip.textColor = title_color;
        _tvTip.font = btnFont;
        
        _moreTip = [[UILabel alloc] init];
        _moreTip.text = @"更多";
        _moreTip.textColor = normal_text_color;
        _moreTip.font = textFont;
        
        _nextImage = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"more_icon"]];
        
        [self addSubview:_tvTip];
        [self addSubview:_moreTip];
        [self addSubview:_nextImage];
        
        [_tvTip mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self);
            make.left.equalTo(self).offset(15);
        }];
        
        [_nextImage mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self);
            make.right.equalTo(self).offset(-15);
        }];
        
        [_moreTip mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self);
            make.right.equalTo(_nextImage.mas_left).offset(-10);
        }];
        
    }
    return self;
}

@end
